﻿using System.Collections;
using System.Windows.Forms;

namespace Games
{
	public static class Input
	{
		public static Hashtable Keys = new Hashtable();

		public static void ChangeState(Keys key, bool state)
		{
			Keys[key] = state;
		}

		public static bool Press(Keys key)
		{
			if (Keys[key] == null)
				Keys[key] = false;
			return (bool) Keys[key];
		}
	}
}
